package com.ruoyi.business.config;

public enum ResponseCode {

    SUCCESS(0, "操作成功"),
    ERROR(1, "操作失败"),
    SIGN_FAIL(4001, "签名错误"),
    DATA_DECRYPT_FAIL(5001, "数据解密失败"),
    DATA_SAVE_FAIL(5002, "数据保存异常"),
    NO_TIMESTAMP(5003, "timestamp不能为空"),
    NO_SIGN(5004, "sign不能为空"),
    NO_MESSAGEID(5005, "消息ID不能为空"),
    SIGN_VERIFY_FAIL(5006, "sign签名校验失败"),
    SIGN_TIMESTAMP_INVALID(5007, "timestamp无效"),
    SIGN_DUPLICATION(5008, "三分钟内请求重复"),
    PUSH_SUCCESS(200, "接收成功"),
    PUSH_DUPLICATION(5009, "推送重复"),
    NO_RECORD(5010, "未找到交易记录"),
    QUERY_SUCCESS(200, "操作成功");

    private Integer code;
    private String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
